package kr.hkit.powerjava.chapter07.submit;

import java.util.Scanner;

class ReverseChar {

	String str;
	int i;

	void result() {

		Scanner input = new Scanner(System.in);
		System.out.print("문자를 입력하시오: ");

		str = input.next();
		i = str.length();

		for (i = str.length(); i > 0; i--) {
			System.out.print(str.charAt(i - 1));

		}
	}
}
